<template>
  <router-view v-slot="{ Component }">
    <keep-alive :include="keepAliveComponents">
      <component :is="Component"></component>
    </keep-alive>
  </router-view>
</template>

<script setup>
import { provide } from 'vue'
const keepAliveComponents = []

const add = () => {
  console.log(`helloworld,app`)
}

provide('app', {
  a: 1,
  add
})
</script>

<style lang="scss">
@import 'element-plus/dist/index.css';
</style>
